use modql::field::SeaFieldValue;
use serde::{Deserialize, Serialize};
use ts_rs::TS;

#[derive(
    Debug,
    Clone,
    Serialize,
    Deserialize,
    SeaFieldValue,
    derive_more::Display,
    sqlx::Type,
    PartialEq,
    TS,
)]
#[sqlx(type_name = "user_role")]
#[ts(export, export_to = "../../../frontends/web/src/bindings/")]
pub enum UserRole {
    Admin,
    User,
}
